from enthought.traits.api import HasTraits, Int, Button
from enthought.traits.ui.api import View, Item, HGroup, ButtonEditor

class Counter(HasTraits):
    value = Int()
    add_one = Button()
    
    def _add_one_fired(self):
        self.value +=1
        
    view = View('value', Item('add_one', show_label=False ))

if __name__ == "__main__":
    Counter().configure_traits()
